<?php
////////////////////////////////////////////////////
//	LinBoard
//	viewthread.php
//	Created: 19th February 2009; 13:22 UTC
//	LinBoard (c) Copyright OpenInferno 2008, 2009
////////////////////////////////////////////////////

//Setup Environment
error_reporting(E_ALL | E_STRICT);
define("LINBOARD", true);

//Load Framework
require_once("./Config.php");
require_once(ROOT_PATH . "/Framework/Framework.php");

$Thread = Framework::Thread()->getThread($_GET['tid']);

$Posts = Framework::Post()->getPosts($_GET['tid']);

Framework::Template()->set("Thread", $Thread);
Framework::Template()->set("Posts", $Posts);
Framework::Template()->fetch(ROOT_PATH . "/Templates/Default/viewthread_template.php");
?>